package com.vchello.service.impl.entrepren;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.vchello.bean.entrepren.ProDeliveryOrganization;
import com.vchello.dao.entrepren.ProDeliveryOrganizationDao;
import com.vchello.service.entrepren.ProDeliveryOrganizationService;

/**
 * 
 * @author power
 *
 */
@Service(value = "proDeliveryOrganizationService")
public class ProDeliveryOrganizationServiceImpl extends ServiceImpl<ProDeliveryOrganizationDao, ProDeliveryOrganization> implements ProDeliveryOrganizationService {
	
	@Autowired
	private ProDeliveryOrganizationDao proDeliveryOrganizationDao;

	@Override
	public boolean saveAllProDeliveryOrganization(List<ProDeliveryOrganization> list) {
		return proDeliveryOrganizationDao.saveAllProDeliveryOrganization(list);
	}

	@Override
	public Integer updateProDeliveryOrganization(ProDeliveryOrganization entity) {
		return proDeliveryOrganizationDao.updateById(entity);
	}

	@Override
	public void deleteProDeliveryOrganization(ProDeliveryOrganization entity) {
		proDeliveryOrganizationDao.deleteById(entity);
	}

	@Override
	public ProDeliveryOrganization findProDeliveryOrganizationById(int id) {
		return proDeliveryOrganizationDao.selectById(id);
	}

}
